<div class="well">
	<table class="table table-bordered" id="select_flights_block">
		<caption><strong>
			<?php echo ucfirst($direction) . ' : ';?>
			<span class="text-info" id="from_to_airport">Seoul/Gimpo  → Busan</span>
			<?php echo '(' . $booking_data[$direction . '_date'] . ' / ' . date('D', strtotime($booking_data[$direction . '_date'])) . ')';?>
		</strong></caption>
		<thead>
			<tr>
				<th>Flight</th>
				<th>Dep.Time</th>
				<th>Arr.Time</th>
				<th>Aircraft</th>
				<th>Fare</th>
				<th style="width: 40px;">Discount Rate</th>
				<th style="width: 70px;">Available Seat</th>
				<th>Select</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($flights_data as $k => $v):?>
			<tr <?php if ($k % 2 == 0):?>class="info"<?php endif;?>>
				<td><?php echo $v['flight_code'];?>
				</td>
				<td><?php echo $v['departure_time'];?>
				</td>
				<td><?php echo $v['arrival_time'];?>
				</td>
				<td><?php echo $v['model_code'];?>
				</td>
				<td><?php echo 'KRW ' . number_format($v['fare']);?>
				</td>
				<td><?php echo (isset($v['discount_rate']) ? $v['discount_rate'] : '-');?>
				</td>
				<td><?php echo $v['available_seat'];?></td>
				<td id="<?php echo $v['f_flight_id'];?>"><button
						class="btn btn-mini btn-success" type="button" id="select_flight"
						style="width: 44px; height: 44px;">Select Flight</button></td>
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>
